/**
 * &copy; 2006 NewInstance.it
 */
package it.newinstance.jrainbow.parser.java;

import it.newinstance.jrainbow.parser.ParserBase;
import it.newinstance.jrainbow.parser.StateMachine;
import it.newinstance.jrainbow.source.TaggedSource;

/**
 * @author Luigi R. Viggiano
 * @version $Id: JavaParser.java 138 2007-06-12 12:23:29Z luigi.viggiano $
 */
public class JavaParser extends ParserBase {
    
    public void parse(TaggedSource source) {
        source.startParse();        
        StateMachine.Runner.run(JavaStateMachine.CODE, source);
        KeywordMarker marker = new KeywordMarker(source);
        marker.mark();
        source.endParse();
    }

    public String getLanguageName() {
        return "Java";
    }
}
